Latest Questions

Summarizing table sales

I have order table like CustomerId OrderAmount Orderdatetime OrderAmountCurrency AAA 120 02/03/2022 02:03 US$120 AAA 20 02/03/2022 02:20 US$20 AAA 320

drawing a speech bubble using canvas in jetcompose

i want to draw a speech bubble using canvas in jetcompose but i dont know how to draw an arrow at bottom end of the Rectangle this is my code: @Composable fun D

Rails Order by model method

How can I use the model method in scope for ordering? I have to order the users list, users who have failed go in the last. scope :position_ordered, -> { ord

How to understand closure in a lambda?

I want to make 5 buttons in a loop, and for each buttons bind a commend to print the index. In the following solution it always prints the same index. My code

Telegram bot long polling stops at 50s

I wrote a simple C++ program where I use libcurl to send a HTTP POST request at getUpdates URL with the parameter timeout=3600 but it returns after 50 seconds i

Element added to DOM has HTML / SVG attributes, but not the corresponding JS properties

I am using HTMX with Django to render a page which is basically an SVG with a lot of sticky notes () that you can move around on the page, like you might use fo

How do I create a smtplib code that sends an 'Item in stock' email to a specific email address?

Using selenium I have a code that determines if an item is 'in stock' or 'out of stock'. The code can detect once an 'out of stock' item becomes 'in stock'. Usi

Add top shadow to TabView in SwiftUI

I have the following: I'm using a native TabView. I can change the background but I haven't been able to add a little shadow to the top of the UITabBar, I've t

How to collapse Siblings with Headless UI

To make the accordion component with Headless UI, I have used Disclosure component. But I have a problem to control the collapse/expand state for it's siblings.

Multiple flask calls in single pytest having different databases

So I'm trying to test an endpoint in flask that I need to call multiple times in one test. The issue I am having is that on the second request the objects I pla

I am struggling to position/ remove whitespace from duplicate components

Here you will see the start of the NotesFromCoachesForWrestlers component circled The problem is When the notes on the component on the left increase the comp

How to validate list of email in winform C# with specific rules

Mine concern is the following. I have these 2 classes : public class Campaign { public string name { get; set; } public string description {

Alternative function for case match in haskell

I am writing an API in Haskell which involves a DB query. Function will be something like do a db query and then return the response back. doAPICall :: Request

How to jest.mock an ES6 module import?

I've moved a load of helper methods into a npm published library, but some of them are being mocked in the unit tests and I can't figure out how to mock the new

Azure B2C Custom Policy getting 500 Internal Server Error when trying to return alternativeSecurityIds in OutputClaims

I have a User Journey that is taking a user's email address and trying to check if the user is a federated user (as a means to obfuscate the list of all Identit

Could adb command disable/turn off a display screen of android phone while it is still working as normal?

I am wondering if adb command could disable/turn off a display screen of android phone while it is still working as normal. I see the scrcpy tool (scrcpy -S) ca

Widgets run perfectly in Jupyter Notebook, but do nothing in Voila

I have several buttons which generate images. All work perfectly in Jupyter Notebook, but when I click Voila, and click the buttons, nothing happens. The first

TypeError: Cannot read property 'uuid' of undefined faker-js faker

I am trying to use faker-js package, but I unexpectedly get a TypeError: Cannot read property 'uuid' of undefined for my variable businessId which try to use fa

Converting h5 to tflite [closed]

I have been trying to get this zero-shot text classification joeddav / xlm-roberta-large-xnli to convert from h5 to tflite file (https://huggi

Is there a way to remove prevous prints?

So i am currently trying to make something that will print . and remove it then print .. and also remove it then print ... When i tried using sys module to remo

Tuple to Json (with Java & EntityManager)

For a project, i needed to fetch records from a SQL database into a list of objects (using java for backend). The exchange between the backend and the frontend

Swift saving decimal to firebase

I am trying to get my numbers as accurate as possible when the user enters the information for fuel purchased. I also would like it so in the example below a us

Losing divider in native-base Modal when styling

Using native-base Modal and theming. See their theme/components/modal.ts for a reference as to what components make up a Modal and their theme. So I'm trying to

grabToImage save the delagate pathview qml

Hello my question is the following I am trying to iterate over the pathview delegate but I am getting an error that it does not find the image I want to save af

performing a search on enter?

I have this form: <form> <label for="locationsearch">Location:</label> <input type="search" id="locationsearch" name="locationsearch" /

How can I run React with hooks in an iFrame

I am writing a React application in which I would like to dynamically render React components through an iFrame. I have a code editor on the webpage that allows

Code acting differently inside of a function in R

i've got this set of code here in R that seperates a dataframe containing tweets by their day posted. I'm finding a weird interaction where, if i was to run the

No installed build tools found. Install the Android build tools version 30.0

I have installed the build tools from the Android Studio SDK like that: Tools -> SDK Manager -> Android SDK -> Android 10,11,12 in the SDK Platforms, a

How to run JUnit5 suite using the @Suite annotation

I'm trying to figure this out for over a year now but I can't run JUnit5 suites unless I use the JUnit4 @RunWith annotation, which brings me some other issues.